package org.jingouzhui.test.infrastructure;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.jingouzhui.infrastructure.persistent.dao.IStrategyDAO;
import org.jingouzhui.infrastructure.persistent.po.Strategy;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description: 策略DAO单元测试
 * @author: jingouzhui
 * @date: 2025/4/24 0:57
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class StrategyDAOTest {

    @Resource
    private IStrategyDAO strategyDAO;

    @Test
    public  void test_queryStrategyList(){
        List<Strategy> strategyList = strategyDAO.queryStrategyList();
        log.info("测试结果:{}", JSON.toJSONString(strategyList));
    }
}
